function loading(text) {
      var html='<div class="weui-loadmore">\n' +
        '  <i class="weui-loading"></i>\n' +
        '  <span class="weui-loadmore__tips">'+text+'</span>\n' +
        '</div>';
      $('<div id="y-loading">').css({
        position:'fixed',
        zIndex:9999999,
        width:'100%',
        height:'100%',
        left:0,
        top:0,
        color:'#fff',
        background:'rgba(0,0,0,.2)'
      }).append(html).appendTo('body').find('.weui-loadmore').css({
        position:'absolute',
        left:'50%',
        top:'50%',
        transform:'translate(-50%,-50%)',
        '-webkit-transform':'translate(-50%,-50%)'
      });
    }

function loadingClose() {
  $('#y-loading').fadeOut(200,function () {
    $('#y-loading').remove();
  });
}